
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript" type="text/JavaScript">

function validate()
{
var date=document.getElementById("date").value; 
var Heading=document.getElementById("heading").value;
var discription=document.getElementById("desc").value;
var Link=document.getElementById("link").value;

submitOK="true";

if (date==null||date==""||date=="_%")
 {
 alert("Please Enter The Date of news ! ");
 submitOK="false";
 }
 
 if (Heading==null||Heading==""||Heading=="_%")
 {
 alert("Please Enter The Heading of news! ");
 submitOK="false";
 }
 
 if (discription==null||discription==""||discription=="_%")
 {
 alert("Please Enter The Description ! ");
 submitOK="false";
 }
 
 if (Link==null||Link==""||Link=="_%")
 {
 alert("Please Enter The link ! ");
 submitOK="false";
 }
 if (submitOK=="false")
 {
 return false;
 }
}

</script>

</head>
<body OnLoad="document.New.Date_Of_Admition.focus();">
<br><br>
  <table cellpadding="0" cellspacing="0">
    <tr> 
      <td valign="top">
	  </td>
      <div> 
        <div align="center"><font size="+2" face="Lucida Calligraphy">News Update Form</font></div>
      </div>
		
      <td><div> 
         
          <form name="New" action="insertnews.php" method="post" onSubmit="return validate()">
            
              <table  border="0" align="left" cellpadding="1" cellspacing="1" dwcopytype="CopyTableRow">
                <tbody valign="top"><tr>
                  <td width="100" align="right"><div><font size="2" >Date</font>:</div></td>
                  <td width="218"><div><input type="text" name="date" id="date"></div></td>
                  
                 
                  </tr>
				  
                  <tr> 
                    <td align="right"><div><font size="2" ></font>Heading:</div></td>
                    <td><div> 
                        <input maxlength="50" name="heading"   size="24" id="heading">
                      </div></td>
                  
                  
                  </tr>
				                    <tr> 
                    <td align="right"><div><font size="2" >Discription </font>:</div></td>
                    <td><div> 
                      <textarea cols="21" rows="5" id="desc" name="desc"></textarea>
                      </div></td>

                  </tr>
                  <tr> 
                    <td align="right"><div><font size="2">Link</font>:</div></td>
                    <td><div> 
                        <input name="link" id="link" size="24" maxlength="50">
                      </div></td>

                    
                  </tr>
                  <tr> 
                    <td align="right"><div><font size="2">Image</font>:</div></td>
                    <td><div> 
                        <input name="file" size="24" maxlength="50" type="file">
                      </div></td>

                   
                  </tr>
                 

                
                 
                  
                  <tr> 
                    

                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>

                  <tr> 
                    <td></td>
                  </tr>
                  <tr> 
                    <td height="4" align="center"><div> 
                        <input type="submit" name="Submit" value="Save" class="button">
                      </div></td>
                  </tr>
                </tbody>
              </table>
          </form>
          </div></td>


    </tr>
	
    
  </table>
</div>



<div>
  <div align="center">Copyright &copy; 2008-2009<br>
    All rights reserved</div>
</div>
</body>
</html>
